import yayJpg from '../assets/yay.jpg';
import { useState, useEffect } from 'react';

export default function HomePage() {
  useEffect(() => {
    let path = './app'
    // let data = require(path).default;
    let datas = require.context(path,true,/.js$/)
    console.log(datas);
    
  }, []);
  return (
    <div>
      <h2>Yay! Welcome to umi!</h2>
      <p>
        <img src={yayJpg} width="388" />
      </p>
      <p>
        To get started, edit <code>pages/index.tsx</code> and save to reload.
      </p>
    </div>
  );
}
